//
//  MyscrollView.m
//  Longer3D
//
//  Created by longer3d on 15/8/12.
//  Copyright (c) 2015年 longer3d. All rights reserved.
//

#import "MyscrollView.h"

@implementation MyscrollView

-(void) touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event{
    
    
    [super touchesBegan:touches withEvent:event];
    if ( !self.dragging )
    {
        [[self nextResponder] touchesBegan:touches withEvent:event];
    }
    
    [self endEditing:YES];
}

-(void) touchesEnded:(NSSet *)touches withEvent:(UIEvent *)event{
    [super touchesEnded:touches withEvent:event];
    if ( !self.dragging )
    {
        [[self nextResponder] touchesEnded:touches withEvent:event];
    }
    [self endEditing:YES];
    
}


@end
